package com.ws.q1.service.lmpl;


import com.ws.q1.bean.XianLu;
import com.ws.q1.mapper.XianLuMapper;
import com.ws.q1.service.XianLuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class XianLulmpl implements XianLuService {
    @Autowired
    private XianLuMapper xianLuMapper;


    @Override
    public List<XianLu> list() {
        return xianLuMapper.list();
    }

    @Override
    public List<XianLu> pageList(String name, String chufadi, String mudidi, Double price, Integer gongyingshangId) {
        return xianLuMapper.pageList(name, chufadi, mudidi, price, gongyingshangId);
    }


    @Override
    public void deleteById(Integer id) {
        xianLuMapper.deleteById(id);
    }

    @Override
    public int add(XianLu xianlu) {
        return xianLuMapper.add(xianlu);
    }

    @Override
    public int update(XianLu xianlu) {
        return xianLuMapper.update(xianlu);
    }

    @Override
    public XianLu huixian(Integer id) {
        return xianLuMapper.huixian(id);
    }



}
